From: Kaldari Date: Tue, 12 Mar 2013 23:27:16 +0000 (-0700) Subject: Adding output parameter to PageHistoryBeforeList hook X-Git-Tag: 1.31.0-rc.0~20364^2 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=024ea7857455b8a3f94c0fad65b1e753fae629af;p=lhc%2Fweb%2Fwiklou.git Adding output parameter to PageHistoryBeforeList hook This will allow us to easily add other RL modules to the page Change-Id: I2ec00d44e37298ef91ab428759bda037072b0120 --- diff --git a/docs/hooks.txt b/docs/hooks.txt index d892b7930c..2054eda878 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1678,6 +1678,7 @@ $baseRevId: the rev ID (or false) this edit was based on 'PageHistoryBeforeList': When a history page list is about to be constructed. $article: the article that the history is loading for +$out: OutputPage object 'PageHistoryLineEnding' : Right before the end
  • is added to a history line. $row: the revision row for this line diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index e64e3d21c6..56b02e9dd5 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -185,7 +185,7 @@ class HistoryAction extends FormlessAction { '' ); - wfRunHooks( 'PageHistoryBeforeList', array( &$this->page ) ); + wfRunHooks( 'PageHistoryBeforeList', array( &$this->page, &$out ) ); // Create and output the list. $pager = new HistoryPager( $this, $year, $month, $tagFilter, $conds );